<?php

namespace App\Console\Commands;

use App\Events\News;
use Illuminate\Console\Command;

class SendNewsCommand extends Command
{

    protected $signature = 'app:send-news';

    protected $description = '发送消息';

    public function handle()
    {
        broadcast(new News(date('Y-m-d H:i:s') . '发送消息'));
        $this->comment('news is send ok');
    }

}
